package com.xianyu.us.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.xianyu.us.pojo.entity.UsOrder;

/**
 * 操作交易成功表持久层接口
 * @author Administrator
 *
 */
@Mapper
public interface UsOrderDao {
	
	/**
	 * 插入一个订单数据
	 * @param order 订单类对象
	 * @return
	 */
	@Insert("insert into us_transactions values(null,#{buyerId},#{sellerId},#{number},#{orderNo},#{content},#{price},#{sendAddr},#{recAddr},#{imgUrl},now())")
	Integer insertOrder(UsOrder order);
}
